package com.javandad.app.client;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.javandad.app.shared.entity.Friendship;
import com.javandad.app.shared.entity.Message;
import com.javandad.app.shared.entity.Notification;
import com.javandad.app.shared.entity.project.ProjectAssoc;

/**
 * The client side stub for the RPC service.
 */


@RemoteServiceRelativePath("message")
public interface MessageBoxService extends RemoteService {
	
	List<Notification> downloadNotifications(java.lang.String username) throws IllegalArgumentException;
	Boolean replyInvitation(Friendship invitation, Boolean reply) throws IllegalArgumentException;
	List<Message> downloadMessages(String username, boolean sent) throws IllegalArgumentException;
	Boolean uploadMessage(Message msg) throws IllegalArgumentException;
	List<String> getSessionInfo() throws IllegalArgumentException;
	
	boolean respondParticipationInvitation(ProjectAssoc p, boolean response);
	
	

}
